<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>修改用户头像</title>
  <!-- 导入CSS -->
  <link rel="stylesheet" href="../../lib/layui/css/layui.css">
  <!-- 导入裁剪CSS -->
  <link rel="stylesheet" href="../../lib/cropper/cropper.css">
  <link rel="stylesheet" href="../../css/user/user-avatar.css">
</head>

<body>
  <!-- 卡片区域 -->
  <div class="layui-card">
    <div class="layui-card-header">更换头像</div>
    <div class="layui-card-body">
      <div class="box">
        <!-- 图片区域 -->
        <div class="image-view">
          <!-- 裁剪区域 -->
          <div class="cropper-view">
            <img id="cropper-img" src="../../assets/avatar.jpg" alt="">
          </div>
          <!-- 预览区域 -->
          <div class="preview-view">
            <div class="big-img"></div>
            <span class="text">100 x 100</span>

            <div class="small-img"></div>
            <span class="text">50 x 50</span>
          </div>
        </div>
        <!-- 按钮区域 -->
        <div class="btn-view">
          <input type="file" hidden id="file-input">
          <button class="layui-btn" id="select-file">选择图片</button>
          <button class="layui-btn layui-btn-danger" id="upload-avatar">上传头像</button>
        </div>
      </div>
    </div>
  </div>

  <!-- 导入JS -->
  <script src="../../lib/layui/layui.all.js"></script>
  <script src="../../lib/jquery.js"></script>
  <!-- 导入裁剪JS -->
  <script src="../../lib/cropper/Cropper.js"></script>
  <script src="../../lib/cropper/jquery-cropper.js"></script>
  <script src="../..//js/BASE_API.js"></script>
  <script src="../../js/user/user-avatar.js"></script>
</body>

</html>